#include "Driver.h"
GDI g_GDI;
NTSTATUS DriverEntry(PDRIVER_OBJECT pPDriverObj, PUNICODE_STRING pRegistryPath)
{
	
	KAPC_STATE Kpc;
	ULONG64 Old = 0;
	g_GDI.GDIStartsCalling((HANDLE)2948, &Kpc,&Old);
	g_GDI.GDIInitialization();
	HWND hwnd = g_GDI.FindWindowEx(0,0,NULL, L"ByPassAll");	
	HDC hdc = g_GDI.GetDc(hwnd);
	//g_GDI.ExtTextOutW(hdc, 0, 0, 0,NULL,L"123", 3, 0);
	for (int i = 0; i < 10000; i++)
	{
		g_GDI.SetPixel(hdc, i, 50, RGB(255, 0, 0));
	}
	g_GDI.GDIStopsCalling(Kpc,Old);

	pPDriverObj->DriverUnload = UnLoadDriver;
	return STATUS_SUCCESS;

}

VOID UnLoadDriver(PDRIVER_OBJECT pPDriverObj)
{

}
